package cn.yudao.block;

import cn.yudao.entity.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBlockHandler {

    public static User getUserByidBlockHandler(@PathVariable Long id, BlockException blockException){
        return User.builder().age(10L).id(-1L).intro("因为规则出错啦").name("黑大帅").build();
    }

}
